package cn.stylefeng.guns.sys.core.minio;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * minio配置类, 启动需在yml中指定 {@link #endpoint minio地址}, {@link #accessKey 用户名}, {@link #secretKey 密码}
 *
 * @author zhushengjie
 * @date 2022-08-16
 */
@Data
@Component
@ConfigurationProperties(prefix = "minio")
public class  MinioProperties {

    /**
     * minio前缀
     */
    public static final String PREFIX = "minio";

    /**
     * 开启minio标志位, 默认开启
     */
    private boolean enable = true;

    /**
     * minio地址
     */
    private String endpoint;

    /**
     * 登陆人
     */
    private String customDomain;

    /**
     * path style access
     */
    private Boolean pathStyleAccess = true;

    /**
     * region
     */
    private String region;

    /**
     * 用户名
     */
    private String accessKey;

    /**
     * 密码
     */
    private String secretKey;

    /**
     * 默认bucket名称
     */
    private String bucketName;
}
